import { shimHTTP, useURL, type EntryPoint } from "freesia";
import { createServer } from "http"
import { switcher } from "./route";

const main: EntryPoint = () => {
    return switcher(useURL().pathname)
}
createServer(shimHTTP(main)).listen(8000, () => console.log("started."))
